import multiprocessing

bind = '0.0.0.0:6000'
workers = multiprocessing.cpu_count() * 2 + 1
# gunicorn + apscheduler场景下，解决多worker运行定时任务重复执行的问题
preload_app = True
# 是否开启debug模式
debug = True
# 输出日志级别
loglevel = 'debug'
# 存放日志路径
pidfile = "log/gunicorn.pid"
# 存放日志路径
accesslog = "log/access.log"
# 存放日志路径
errorlog = "log/debug.log"